package com.example.volunteer.service;


import com.example.volunteer.model.Admin;
import com.example.volunteer.util.PageResult;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface AdminService {
    void createAdmin(Admin admin);
    Admin findById(String adminId);
    Admin findByEmail(String email);
    void update(Admin admin);
    void delete(Admin admin);

    PageResult<Admin> findAdminsWithPage(int pageNum, int pageSize);

    PageResult<Admin> findByNameWithPage(String name, int pageNum, int pageSize);

    PageResult<Admin> findByEmailWithPage(String email, int pageNum, int pageSize);

    PageResult<Admin> findByContactWithPage(String contact, int pageNum, int pageSize);
}
